/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

/**
 *
 * @author Endlesslove
 */
public class ChiTietBaoCaoCongNo  implements  Idata
{
    private String MaChiTietBaoCaoCongNo;
    public String MaBaoCaoCongNo;
    public String MaKhachHang;
    public float NoDau;
    public float PhatSinh;
    public float NoCuoi;
    
    public ChiTietBaoCaoCongNo(String ...param)
    {
        MaChiTietBaoCaoCongNo = param[0];
        MaBaoCaoCongNo = param[1];
        MaKhachHang = param[2];
        NoDau =Float.parseFloat(param[3]);
        PhatSinh = Float.parseFloat(param[4]);
        NoCuoi = Float.parseFloat(param[5]);
    }
    
    @Override
    public boolean Delete() 
    {
        return new BUS.ChiTietBaoCaoCongNo() .Delete(this);
    }

    @Override
    public boolean Insert() 
    {
        return new BUS.ChiTietBaoCaoCongNo().Insert(this);
    }

    @Override
    public boolean Update() 
    {
        return new BUS.ChiTietBaoCaoCongNo().Update(this);
    }

    @Override
    public Object[] getObjects() 
    {
        return new Object[]
        {
            MaChiTietBaoCaoCongNo, MaBaoCaoCongNo, MaKhachHang, NoDau, PhatSinh, NoCuoi
        };
    }

    @Override
    public String getID() 
    {
        return MaChiTietBaoCaoCongNo;
    }
    
}
